package search.app;

import common.dao.config.ServerConfigurer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by Common on 7/17/16.
 */
public class ServletContextClass implements ServletContextListener
{
    final Logger logger = LoggerFactory.getLogger(ServletContextClass.class);


    public void contextInitialized(ServletContextEvent arg0)
    {
        logger.info("Initializing Web Server ......");
        // if not debug

        new ServerConfigurer().initServer();

        logger.info("Web Server Was Started !!!");
    }


    public void contextDestroyed(ServletContextEvent arg0)
    {
        logger.info("Web Server Was Stoped !!!");
    }

}

